x86: use cpuid vector 0xb when available for detecting cpu topology
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Jul 2010 12:54:44 +0000 (13:54 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Jul 2010 12:54:44 +0000 (13:54 +0100)
commit6518d6c62b21a5c765a923a3e56312d942ddbbe3
treecfe0c81de328140b8f94f6ebd8e3e22bc6f116a1
parentb3625d1e2c5815e6d65a47197bebeae2061153ce
x86: use cpuid vector 0xb when available for detecting cpu topology

cpuid leaf 0xb provides extended topology enumeration. This interface
provides the 32-bit x2APIC id of the logical processor and it also
provides a new mechanism to detect SMT and core siblings (which
provides increased addressability).

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/arch/x86/cpu/common.c
xen/arch/x86/cpu/intel.c
xen/include/asm-x86/cpufeature.h
xen/include/asm-x86/processor.h